package celiasoft.itasalib.structures;

import java.net.URL;
import java.util.Date;

public class User extends DataElement {
	
	private String _username;
	private String _email;
	private String _authcode;
	
	private Date _lastVisit;
	
	private boolean _hasMyItasa = false;
	private Date _registerDate;
	private String _gender = "unknown";
	private Date _birthdate;
	private String _location;
	private URL _websiteUrl;
	private int _unreadedMsgs;
	private URL _avatar; 
	//private String _appSettings; /* what that means? ignoring */
	
	public User(int id) {
		super(id);
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return _username;
	}
	/**
	 * @return the email
	 */
	public String getEmail() {
		return _email;
	}
	/**
	 * @return the authcode
	 */
	public String getAuthcode() {
		return _authcode;
	}
	/**
	 * @return the lastVisit
	 */
	public Date getLastVisit() {
		return _lastVisit;
	}
	/**
	 * @return the hasMyItasa
	 */
	public boolean isHasMyItasa() {
		return _hasMyItasa;
	}
	/**
	 * @return the gender
	 */
	public String getGender() {
		return _gender;
	}
	/**
	 * @return the birthdate
	 */
	public Date getBirthdate() {
		return _birthdate;
	}
	/**
	 * @return the location
	 */
	public String getLocation() {
		return _location;
	}
	/**
	 * @return the websiteUrl
	 */
	public URL getWebsiteUrl() {
		return _websiteUrl;
	}
	/**
	 * @return the unreadedMsgs
	 */
	public int getUnreadMsgs() {
		return _unreadedMsgs;
	}
	/**
	 * @return the avatar
	 */
	public URL getAvatar() {
		return _avatar;
	}
	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		_username = username;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		_email = email;
	}
	/**
	 * @param authcode the authcode to set
	 */
	public void setAuthcode(String authcode) {
		_authcode = authcode;
	}
	/**
	 * @param lastVisit the lastVisit to set
	 */
	public void setLastVisit(Date lastVisit) {
		_lastVisit = lastVisit;
	}
	/**
	 * @param hasMyItasa the hasMyItasa to set
	 */
	public void setHasMyItasa(boolean hasMyItasa) {
		_hasMyItasa = hasMyItasa;
	}
	/**
	 * @param gender the gender to set
	 */
	public void setGender(String gender) {
		_gender = gender;
	}
	/**
	 * @param birthdate the birthdate to set
	 */
	public void setBirthdate(Date birthdate) {
		_birthdate = birthdate;
	}
	/**
	 * @param location the location to set
	 */
	public void setLocation(String location) {
		_location = location;
	}
	/**
	 * @param websiteUrl the websiteUrl to set
	 */
	public void setWebsiteUrl(URL websiteUrl) {
		_websiteUrl = websiteUrl;
	}
	/**
	 * @param unreadedMsgs the unreadedMsgs to set
	 */
	public void setUnreadMsgs(int unreadedMsgs) {
		_unreadedMsgs = unreadedMsgs;
	}
	/**
	 * @param avatar the avatar to set
	 */
	public void setAvatar(URL avatar) {
		_avatar = avatar;
	}

	/**
	 * @return the registerDate
	 */
	public Date getRegisterDate() {
		return _registerDate;
	}

	/**
	 * @param registerDate the registerDate to set
	 */
	public void setRegisterDate(Date registerDate) {
		_registerDate = registerDate;
	}

	
	
}
